<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>编辑机构</title>
    <%@ include file="../../common/meta.jsp" %>
    <%@ include file="../../common/common-body.jsp" %>
    <link href="${ctx}/css/page/common-win.css?t=${now}" rel="stylesheet">
    <link href="${ctx}/css/plugins/note/note.css?t=${now}" rel="stylesheet">
    <script src="${ctx}/js/common/myDateTimeFormat.js?t=${now}"></script>
    <script src="${ctx}/js/common/upLoadingFileSize.js?t=${now}"></script>
    <script src="${ctx}/js/plugins/jquery.ajaxfileupload-2.1.js?t=${now}"></script>
    <script src="${ctx}/js/plugins/note/note.js?t=${now}"></script>
    <script src="${ctx}/js/plugins/jQuery.md5.js?t=${now}"></script>
    <script src="${ctx}/js/imageview/jquery.photo.gallery.js?t=${now}"></script>
    <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.7&plugin=AMap.Geocoder&key=ed0d5c63e1ead37a46822a88d4b7b96d"></script>
    <style>
        #_btnDiv{
            height: 34px;
            margin-bottom: 0px;
        }
        #_parentOrgDiv {
        <c:if test="${not empty oneOrgInfo && oneOrgInfo.orgRegion == 'branch'}">
            display: block;
        </c:if>
        <c:if test="${not empty oneOrgInfo && oneOrgInfo.orgRegion != 'branch'}">
            display: none;
        </c:if>
        }
    </style>
    <script>
        var editType = '${type}';
        var oneOrgInfo = ${oneOrgInfo};
        var searchOrgInfo = ${searchOrgInfo};
        var imgSrcDefault = "${ctx}/images/main/default.jpg";
    </script>
</head>
<body class="gray-bg">
<div id="vue">
    <div class="myContent">
        <div class="tabs-container">
            <div class="tab-content">
                <%--项目简介--%>
                <div id="tab-1" class="tab-pane active">
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="ibox float-e-margins myIbox">
                                <div class="ibox-title">
                                    <h5>机构信息</h5>
                                </div>
                                <div class="ibox-content">
                                    <h5 class="page-header page-header-new"><i class="fa fa-file-text"></i>&nbsp;&nbsp;基本信息</h5>
                                    <form class="form-horizontal m-t" id="_orgDataForm">
                                        <c:choose>
                                            <c:when test="${type=='info'}">
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">机构编码：</label>
                                                    <label class="col-sm-8 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.orgCode : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">机构名称：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.orgName : ''}</label>
                                                    <label class="col-sm-2 control-label">机构简称：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.orgShortName : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">机构类型：</label>
                                                    <label class="col-sm-3 control-label control-label-content">
                                                        <c:forEach items="${orgCategoryMap}" var="item">
                                                            ${not empty oneOrgInfo && oneOrgInfo.orgCategory == item.code ? item.name : '' }
                                                        </c:forEach>
                                                    </label>
                                                    <label class="col-sm-2 control-label">机构等级：</label>
                                                    <label class="col-sm-3 control-label control-label-content">
                                                        <c:forEach items="${orgLevelMap}" var="item">
                                                            ${not empty oneOrgInfo && oneOrgInfo.orgLevel == item.code ? item.name : '' }
                                                        </c:forEach>
                                                    </label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">主体关系：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneOrgInfo && oneOrgInfo.orgRegion == 'main'? '主体' : '分院' }</label>
                                                    <label class="col-sm-2 control-label">原机构编码：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.code : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <c:if test="${not empty oneOrgInfo && oneOrgInfo.orgRegion == 'branch'}">
                                                        <label class="col-sm-2 control-label">对应总部：</label>
                                                        <label class="col-sm-8 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.orgParentCodeStr : ''}</label>
                                                    </c:if>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">联系电话：</label>
                                                    <label class="col-sm-8 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.contactPhone : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">省份：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.province : ''}</label>
                                                    <label class="col-sm-2 control-label">城市：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.city : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">区/县：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.area : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">详细地址：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.orgStreet : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">经度：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.longitude : ''}</label>
                                                    <label class="col-sm-2 control-label">纬度：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.latitude : ''}</label>
                                                </div>
                                                <h5 class="page-header page-header-new"><i class="fa fa-file-text"></i>&nbsp;&nbsp;扩展信息</h5>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">数据来源：</label>
                                                    <label class="col-sm-3 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.isvName : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">热门标签：</label>
                                                    <label class="col-sm-8 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.searchTags : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">机构介绍：</label>
                                                    <label class="col-sm-8 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.orgDescription : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">机构logo：</label>
                                                    <div class="col-sm-8">
                                                        <div  class="col-sm-2">
                                                            <div class="gallerys">
                                                                <img style="float: left"
                                                                     class="img-rounded img-header gallery-pic"
                                                                     onclick='$.openPhotoGallery(this)'
                                                                     src="${not empty oneOrgInfo.orgLogo && not empty oneOrgInfo.orgLogo?oneOrgInfo.orgLogo:ctx}${not empty oneOrgInfo&&not empty oneOrgInfo.orgLogo ?'':'/images/main/default.jpg'}">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">logo链接：</label>
                                                    <label class="col-sm-8 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.orgLogo : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">机构缩略图：</label>
                                                    <div class="col-sm-8">
                                                        <div  class="col-sm-2">
                                                            <div class="gallerys">
                                                                <img style="float: left"
                                                                     class="img-rounded img-header gallery-pic"
                                                                     onclick='$.openPhotoGallery(this)'
                                                                     src="${not empty oneOrgInfo.orgThumbnail && not empty oneOrgInfo.orgThumbnail?oneOrgInfo.orgThumbnail:ctx}${not empty oneOrgInfo&&not empty oneOrgInfo.orgThumbnail ?'':'/images/main/default.jpg'}">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">缩略图链接：</label>
                                                    <label class="col-sm-8 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.orgThumbnail : ''}</label>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">机构大图：</label>
                                                    <div class="col-sm-8">
                                                        <div  class="col-sm-2">
                                                            <div class="gallerys">
                                                                <img style="float: left"
                                                                     class="img-rounded img-header gallery-pic"
                                                                     onclick='$.openPhotoGallery(this)'
                                                                     src="${not empty oneOrgInfo.orgImg && not empty oneOrgInfo.orgImg?oneOrgInfo.orgImg:ctx}${not empty oneOrgInfo&&not empty oneOrgInfo.orgImg ?'':'/images/main/default.jpg'}">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">大图链接：</label>
                                                    <label class="col-sm-8 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.orgImg : ''}</label>
                                                </div>
                                            </c:when>
                                            <c:otherwise>
                                                <c:if test="${type != 'add'}">
                                                    <div class="form-group">
                                                        <label class="col-sm-2 control-label">机构编码：</label>
                                                        <label class="col-sm-8 control-label control-label-content">${not empty oneOrgInfo ? oneOrgInfo.orgCode : ''}</label>
                                                    </div>
                                                </c:if>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label"><span style="color: red">*</span>机构名称：</label>
                                                    <div class="col-sm-3">
                                                        <input type="text" id="orgName" name="orgName" class="form-control" maxlength="20" required value="${not empty oneOrgInfo ? oneOrgInfo.orgName : ''}">
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                    <label class="col-sm-2 control-label">机构简称：</label>
                                                    <div class="col-sm-3">
                                                        <input type="text" id="orgShortName" name="orgShortName" class="form-control" maxlength="20" value="${not empty oneOrgInfo ? oneOrgInfo.orgShortName : ''}">
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label"><span style="color: red">*</span>机构类型：</label>
                                                    <div class="col-sm-3">
                                                        <select class="form-control" name="orgCategory" id="orgCategory" required>
                                                            <option value="">--请选择--</option>
                                                            <c:forEach items="${orgCategoryMap}" var="item">
                                                                <option value="${item.code}" ${not empty oneOrgInfo && oneOrgInfo.orgCategory == item.code? 'selected' : '' }>${item.name}</option>
                                                            </c:forEach>
                                                        </select>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                    <label class="col-sm-2 control-label"><span style="color: red">*</span>机构等级：</label>
                                                    <div class="col-sm-3">
                                                        <select class="form-control" name="orgLevel" id="orgLevel" required>
                                                            <option value="">--请选择--</option>
                                                            <c:forEach items="${orgLevelMap}" var="item">
                                                                <option value="${item.code}" ${not empty oneOrgInfo && oneOrgInfo.orgLevel == item.code? 'selected' : '' }>${item.name}</option>
                                                            </c:forEach>
                                                        </select>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label">主体关系：</label>
                                                    <div class="col-sm-3">
                                                        <select class="form-control" name="orgRegion" id="orgRegion" onchange="doChangeRegionEvent()">
                                                            <option value="main" ${not empty oneOrgInfo && oneOrgInfo.orgRegion == 'main'? 'selected' : '' }>本部</option>
                                                            <option value="branch" ${not empty oneOrgInfo && oneOrgInfo.orgRegion == 'branch'? 'selected' : '' }>分院</option>
                                                        </select>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                    <label class="col-sm-2 control-label">原机构编码：</label>
                                                    <div class="col-sm-3">
                                                        <input type="text" id="code" name="code" class="form-control" maxlength="64" value="${not empty oneOrgInfo ? oneOrgInfo.code : ''}">
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group form-group-new" id="_parentOrgDiv">
                                                    <label class="col-sm-2 control-label"><span style="color: red">*</span>对应总部：</label>
                                                    <div class="col-sm-8">
                                                        <div class="input-group">
                                                            <input type="hidden" id="orgParentCode" name="orgParentCode" value="${not empty oneOrgInfo ? oneOrgInfo.orgParentCode : ''}">
                                                            <input type="text" id="orgParentCodeStr" name="orgParentCodeStr" class="form-control" maxlength="20" required value="${not empty oneOrgInfo?oneOrgInfo.orgParentCodeStr : ''}">
                                                            <div class="input-group-btn">
                                                                <button type="button" class="btn btn-default dropdown-toggle mySearchBtn" data-toggle="dropdown">
                                                                    <span class="caret"></span>
                                                                </button>
                                                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                                                </ul>
                                                            </div>
                                                        </div>
                                                        <span class="help-block m-b-none tip" id="_parentOrgTip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label">联系电话：</label>
                                                    <div class="col-sm-3">
                                                        <input type="text" id="contactPhone" name="contactPhone" class="form-control" maxlength="20" value="${not empty oneOrgInfo ? oneOrgInfo.contactPhone : ''}">
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label"><span style="color: red">*</span>省份：</label>
                                                    <div class="col-sm-3">
                                                        <select class="form-control" name="provinceCode" id="provinceCode" onchange="doSelectCity()" required>
                                                            <option value="">--请选择--</option>
                                                            <c:forEach items="${provinceMap}" var="item">
                                                                <option value="${item.code}" ${not empty oneOrgInfo && oneOrgInfo.orgProvinceCode == item.code? 'selected' : '' }>${item.name}</option>
                                                            </c:forEach>
                                                        </select>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                    <label class="col-sm-2 control-label"><span style="color: red">*</span>城市：</label>
                                                    <div class="col-sm-3">
                                                        <select class="form-control" name="cityCode" id="cityCode" onchange="doSelectArea()" required>
                                                            <option value="">--请选择--</option>
                                                            <c:forEach items="${cityMap}" var="item">
                                                                <option value="${item.code}" ${not empty oneOrgInfo && oneOrgInfo.orgCityCode == item.code? 'selected' : '' }>${item.name}</option>
                                                            </c:forEach>
                                                        </select>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label">区/县：</label>
                                                    <div class="col-sm-3">
                                                        <select class="form-control" name="areaCode" id="areaCode">
                                                            <option value="">--请选择--</option>
                                                            <c:forEach items="${areaMap}" var="item">
                                                                <option value="${item.code}" ${not empty oneOrgInfo && oneOrgInfo.orgAreaCode == item.code? 'selected' : '' }>${item.name}</option>
                                                            </c:forEach>
                                                        </select>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label"><span style="color: red">*</span>详细地址：</label>
                                                    <div class="col-sm-8">
                                                        <input type="hidden" name="orgAddress" id="orgAddress" class="form-control"  maxlength="2048" value="${not empty oneOrgInfo ? oneOrgInfo.orgAddress : ''}">
                                                        <div class="input-group" style="width: 100%!important;">
                                                            <input type="text" name="orgStreet" id="orgStreet" class="form-control"  maxlength="255" required value="${not empty oneOrgInfo ? oneOrgInfo.orgStreet : ''}">
                                                            <span class="input-group-btn" style="width: 82px;!important;">
                                                                <button type="button" class="btn btn-primary" onclick="openGeocoderMapPage()">地址预览</button>
                                                            </span>
                                                        </div>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label"><span style="color: red">*</span>经度：</label>
                                                    <div class="col-sm-3">
                                                        <input type="text" id="longitude" name="longitude" class="form-control" maxlength="10" required value="${not empty oneOrgInfo ? oneOrgInfo.longitude : ''}">
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                    <label class="col-sm-2 control-label"><span style="color: red">*</span>纬度：</label>
                                                    <div class="col-sm-3">
                                                        <input type="text" id="latitude" name="latitude" class="form-control" maxlength="10" required value="${not empty oneOrgInfo ? oneOrgInfo.latitude : ''}">
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <h5 class="page-header page-header-new"><i class="fa fa-file-text"></i>&nbsp;&nbsp;扩展信息</h5>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label"><span style="color: red">*</span>数据来源：</label>
                                                    <div class="col-sm-8">
                                                        <div class="input-group">
                                                            <input type="hidden" id="isvPid" name="isvPid" value="${not empty oneOrgInfo ? oneOrgInfo.isvPid : ''}">
                                                            <input type="text" id="isvName" name="isvName" class="form-control" maxlength="20" required :value="orgObj.isvName" placeholder="请输入数据来源">
                                                            <div class="input-group-btn">
                                                                <button type="button" class="btn btn-default dropdown-toggle mySearchBtn" data-toggle="dropdown">
                                                                    <span class="caret"></span>
                                                                </button>
                                                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                                                </ul>
                                                            </div>
                                                        </div>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group form-group-new">
                                                    <div class="col-sm-2" style="text-align: right; padding-right: 0px;">
                                                        <label class="control-label">热门标签：</label>
                                                        <input type="button" class="btn btn-primary" onclick="openEnumListPage()" value="选择标签">
                                                    </div>
                                                    <div class="col-sm-8">
                                                        <div class="note" name="_searchTags" readonly="true">
                                                            <c:if test="${not empty oneOrgInfo}">
                                                                <c:forEach items="${oneOrgInfo.tagList}" varStatus="i" var="item" >
                                                                    <div class="note_lable" name="_searchTags" value="${item}">
                                                                        <lable>${item}</lable>
                                                                        <div  onclick="$(this).parent().remove()">X</div>
                                                                        <div  class="note_mind"></div>
                                                                    </div>
                                                                </c:forEach>
                                                            </c:if>
                                                        </div>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group form-group-new">
                                                    <label class="col-sm-2 control-label">机构介绍：</label>
                                                    <div class="col-sm-8">
                                                        <textarea type="text" id="orgDescription" name="orgDescription" class="form-control" maxlength="500" style="height: 80px; resize: none;">${not empty oneOrgInfo ? oneOrgInfo.orgDescription : ''}</textarea>
                                                        <span class="help-block m-b-none tip"></span>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">机构logo：</label>
                                                    <div class="col-sm-8">
                                                        <div  class="col-sm-2">
                                                            <div class="gallerys">
                                                                <img style="float: left" id="_orgLogo"
                                                                     class="img-rounded img-header gallery-pic"
                                                                     onclick='$.openPhotoGallery(this)'
                                                                     src="${not empty oneOrgInfo.orgLogo && not empty oneOrgInfo.orgLogo?oneOrgInfo.orgLogo:ctx}${not empty oneOrgInfo&&not empty oneOrgInfo.orgLogo ?'':'/images/main/default.jpg'}">
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-10" style="text-align: left;padding-top: 20px;">
                                                            <label class="ui-upload">浏览
                                                                <input type="file" id="orgLogoFile" name="orgLogoFile" style="left:-9999px;position:absolute;" onchange="onPreviewImg(this, '_orgLogo')" accept="image/gif,image/jpeg,image/jpg,image/png,image/svg">
                                                            </label>
                                                            <label style="float: left;width: 100%;margin-left: 20px;">图片尺寸要求：100*100px，10k以内</label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">logo链接：</label>
                                                    <div class="col-sm-8">
                                                        <input type="hidden" id="orgLogoHidden" class="form-control" maxlength="500" value="${not empty oneOrgInfo ? oneOrgInfo.orgLogo : ''}">
                                                        <input type="text" id="orgLogo" name="orgLogo" class="form-control" maxlength="500" placeholder="优先以logo链接为准">
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label"><span style="color: red">*</span>机构缩略图：</label>
                                                    <div class="col-sm-8">
                                                        <div  class="col-sm-2">
                                                            <div class="gallerys">
                                                                <img style="float: left" id="_orgThumbnail"
                                                                     class="img-rounded img-header gallery-pic"
                                                                     onclick='$.openPhotoGallery(this)'
                                                                     src="${not empty oneOrgInfo.orgThumbnail && not empty oneOrgInfo.orgThumbnail?oneOrgInfo.orgThumbnail:ctx}${not empty oneOrgInfo&&not empty oneOrgInfo.orgThumbnail ?'':'/images/main/default.jpg'}">
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-10" style="text-align: left;padding-top: 20px;">
                                                            <label class="ui-upload">浏览
                                                                <input type="file" id="orgThumbnailFile" name="orgThumbnailFile" style="left:-9999px;position:absolute;" onchange="onPreviewImg(this, '_orgThumbnail')" accept="image/gif,image/jpeg,image/jpg,image/png,image/svg">
                                                            </label>
                                                            <label style="float: left;width: 100%;margin-left: 20px;">图片尺寸要求：160*110px，40k以内</label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">缩略图链接：</label>
                                                    <div class="col-sm-8">
                                                        <input type="hidden" id="orgThumbnailHidden" class="form-control" maxlength="500" value="${not empty oneOrgInfo ? oneOrgInfo.orgThumbnail : ''}">
                                                        <input type="text" id="orgThumbnail" name="orgThumbnail" class="form-control" maxlength="500" placeholder="优先以链接为准">
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">机构大图：</label>
                                                    <div class="col-sm-8">
                                                        <div  class="col-sm-2">
                                                            <div class="gallerys">
                                                                <img style="float: left" id="_orgImg"
                                                                     class="img-rounded img-header gallery-pic"
                                                                     onclick='$.openPhotoGallery(this)'
                                                                     src="${not empty oneOrgInfo.orgImg && not empty oneOrgInfo.orgImg?oneOrgInfo.orgImg:ctx}${not empty oneOrgInfo&&not empty oneOrgInfo.orgImg ?'':'/images/main/default.jpg'}">
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-10" style="text-align: left;padding-top: 20px;">
                                                            <label class="ui-upload">浏览
                                                                <input type="file" id="orgImgFile" name="orgImgFile" style="left:-9999px;position:absolute;" onchange="onPreviewImg(this, '_orgImg')" accept="image/gif,image/jpeg,image/jpg,image/png,image/svg">
                                                            </label>
                                                            <label style="float: left;width: 100%;margin-left: 20px;">图片尺寸要求：690*320px，60k以内</label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">大图链接：</label>
                                                    <div class="col-sm-8">
                                                        <input type="hidden" id="orgImgHidden" class="form-control" maxlength="500" value="${not empty oneOrgInfo ? oneOrgInfo.orgImg : ''}">
                                                        <input type="text" id="orgImg" name="orgImg" class="form-control" maxlength="500" placeholder="优先以链接为准">
                                                    </div>
                                                </div>
                                            </c:otherwise>
                                        </c:choose>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="ibox float-e-margins">
            <div class="ibox-content">
                <div class="form-group" id="_btnDiv">
                    <div class="col-sm-4 col-sm-offset-5">
                        <c:if test="${type!='info'}">
                            <input type="button" class="btn btn-primary" onclick="checkLogo()" value="保存">
                        </c:if>
                        <input type="button" class="btn btn-white" onclick="doCheckDataChange()" value="返回">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="enumListPage" class="modal" tabindex="-1" role="dialog" data-backdrop="static" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content animated bounceInRight">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 style="text-align: center; font-weight: normal;">热门标签</h4>
            </div>
            <div class="modal-body modal-body-height">
                <form id="exportForm" name="exportForm" method="post"></form>
                <table class='table table-striped table-hover'
                       id="enumListTable"
                       data-toggle="table"
                       data-side-pagination="server"
                       data-striped="true"
                       data-response-handler="handleServerResult"
                       data-query-params-type=""
                       data-page-size="${defaultPageSize}"
                       data-page-list="${pageList}"
                >
                    <thead>
                    <tr>
                        <th data-field="checkBx" data-checkbox="true"></th>
                        <th data-field="enumCode" data-visible="false">标签编码</th>
                        <th data-field="enumName" data-align="center">标签名</th>
                    </tr>
                    </thead>
                </table>
            </div>
            <div class="modal-footer" style="text-align: center;">
                <button class="btn btn-primary" onclick="doSelectTagsEvent()" id="_saveBtn">保存</button>
                <button class="btn btn-white" onclick="closeEnumListPage();">取消</button>
            </div>
        </div>
    </div>
</div>


<div id="geocoderMapPage" class="modal" tabindex="-1" role="dialog" data-backdrop="static" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content animated bounceInRight">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4>地址预览</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal m-t" id="_dictDataForm">
                    <div class="form-group">
                        <div id="allMap" style="height:300px;"></div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">经度：</label>
                        <label class="col-sm-2 control-label"><span id="longitudeValue"></span></label>
                        <label class="col-sm-2 control-label">维度：</label>
                        <label class="col-sm-2 control-label"><span id="latitudeValue"></span></label>
                    </div>
                </form>
            </div>
            <div class="modal-footer" style="text-align: center;">
                <button class="btn btn-white" onclick="closeGeocoderMapPage();">关闭</button>
            </div>
        </div>
    </div>
</div>
<script src="${ctx}/js/org/win/editOrgMgr.js?t=${now}"></script>
</body>
</html>
